package org.shangrila.app.wechat.constant;

/**
 * 微信API
 * @author Administrator
 *
 */
public class WechatApiUrl {
	/**
	 * 获取access token
	 */
    public static String GET_TOKEN="https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=ID&corpsecret=SECRECT";
    
    /**
     * 网页授权
     */
    public static String GET_USER_CODE = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=CORPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&agentid=AGENTID&state=STATE#wechat_redirect";
    
    /**
     * 获取用户信息code
     */
    public static String GET_USER_INFO_BY_CODE = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=ACCESS_TOKEN&code=CODE";
    
    /**
     * 创建成员
     */
    
    public static String CREATE_USER = "https://qyapi.weixin.qq.com/cgi-bin/user/create?access_token=";
    
    /**
     * 获取部门列表
     */
    
    public static String GET_DEPARTMENT_LIST = "https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=";
    /**
     * 获取菜单
     */
    public static String GET_MENU = "https://qyapi.weixin.qq.com/cgi-bin/menu/get?access_token=ACCESS_TOKEN&agentid=AGENTID";
    
    /**
     * 创建菜单
     */
    public static String CREATE_MENU = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=";
    
    /**
     * 推送通知
     */
    public static String SEND_MESSAGE = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=ACCESS_TOKEN";
}
